home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
221_01
/
left.asm
< prev
next >
Wrap
Assembly Source File
|
1980-01-01
|
512b
|
46 lines
;small-c V2.3
NAME left
GLOBAL left
left
LEAS -2,S
LEAY 0,S
TFR Y,D
PSHS D
LDD 6,S
STD [,S++]
cc2
LDD 0,S
PSHS D
LDB [,S++]
SEX
PSHS D
LDD #32
CMPD ,S++
LBNE cc3
LDD 0,S
ADDD #1
STD 0,S
JMP cc2
cc3
cc4
LDD 4,S
ADDD #1
STD 4,S
SUBD #1
PSHS D
LDD 2,S
ADDD #1
STD 2,S
SUBD #1
PSHS D
LDB [,S++]
SEX
STB [,S++]
CMPD #0
LBEQ cc5
JMP cc4
cc5
LEAS 2,S
RTS
END